home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Skunkware 5
/
Skunkware 5.iso
/
man
/
cat.n
/
catch.n
< prev
next >
Wrap
Text File
|
1995-07-25
|
2KB
|
67 lines
ccccaaaattttcccchhhh((((nnnn)))) TTTTccccllll (((( )))) ccccaaaattttcccchhhh((((nnnn))))
_________________________________________________________________
NNNNAAAAMMMMEEEE
catch - Evaluate script and trap exceptional returns
SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
ccccaaaattttcccchhhh _s_c_r_i_p_t ?_v_a_r_N_a_m_e?
_________________________________________________________________
DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
The ccccaaaattttcccchhhh command may be used to prevent errors from
aborting command interpretation. CCCCaaaattttcccchhhh calls the Tcl
interpreter recursively to execute _s_c_r_i_p_t, and always
returns a TCL_OK code, regardless of any errors that might
occur while executing _s_c_r_i_p_t. The return value from ccccaaaattttcccchhhh
is a decimal string giving the code returned by the Tcl
interpreter after executing _s_c_r_i_p_t. This will be 0000 (TCL_OK)
if there were no errors in _s_c_r_i_p_t; otherwise it will have a
non-zero value corresponding to one of the exceptional
return codes (see tcl.h for the definitions of code values).
If the _v_a_r_N_a_m_e argument is given, then it gives the name of
a variable; ccccaaaattttcccchhhh will set the variable to the string
returned from _s_c_r_i_p_t (either a result or an error message).
KKKKEEEEYYYYWWWWOOOORRRRDDDDSSSS
catch, error
Page 1 (printed 7/17/95)